<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>GET</h1>
    <script type="module">
      import request from "./xhr.js";

      request
        .put(
          "http://127.0.0.1:3000/users/1",
          {
            headers: {
              token:
                "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiamFjayIsImVtYWlsIjoiamFja0BxcS5jb20iLCJleHAiOjE3MDA3OTU4MDUsImlhdCI6MTcwMDc5MjIwNX0.fF3nc3eXQb6awQRH-pu3CfGCd5miy39ToEUJknhjuKM",
            },
          },
          {
            name: "laozhangabc",
            email: "laozhang@qq.com",
            age: 30,
          }
        )
        .then((data) => {
          console.log(data);
        })
        .catch((err) => {
          console.log(err);
        });
    </script>
  </body>
</html>
